const http=require("http");
const server=http.createServer((req,resp)=>{
    resp.setHeader("content-type","text/html;charset=utf-8")
    resp.statusCode=404;
    resp.statusMessage="你要的资源找不到了"
    resp.write("<h1>响应的第一行</h1>")
    resp.end("Hello")

    
})
server.listen("9000")